ADP\BaseVersion\Includes\Rule\Processors\SingleItemRuleProcessor D

Total Complexity 189
Dependencies 21
Dependents 1
Total lines 1,082
Lines of code 662
Logical lines of code 466
Comment lines 185
Methods 20
Properties 15

Methods 20

Method Rating Maintainability Complexity Lines of code
applyRangeDiscounts()
D
12
90 292
getItemsToDiscount()
C
30 28 121
applyProductAdjustment()
B
39 21 59
isProductMatched()
A
47 11 36
isCategoryMatched()
A
55 8 20
process()
S
48 6 36
sortItems()
S
60 4 14
isRuleMatchedCart()
S
64 3 11
__construct()
S
57 2 16
addFreeProducts()
S
63 3 10
applyToCart()
S
60 2 14
applyChangesToCart()
S
72 2 6
addGifts()
S
72 2 6
checkLimits()
S
80 1 3
checkConditions()
S
80 1 3
matchConditions()
S
80 1 3
applyCartAdjustments()
S
80 1 3
getStatus()
S
82 1 3
getLastExecTime()
S
81 1 3
getRule()
S
82 1 3